package com.txy.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email",fallback = TxyServiceEmailFallback.class,path = "/email")
public interface TxyServiceEmailFeignClient {

    @RequestMapping("/{email}/{code}")
    public boolean sendCode(@PathVariable("email") String email, @PathVariable("code") String code);

}
